﻿using FlyingEye.ESApplication.Services;
using FlyingEye.LogInformations;
using FlyingEye.Repositories;
using Volo.Abp.DependencyInjection;

namespace FlyingEye.Services
{
    public class LogService : ILogService, ITransientDependency
    {
        private readonly LogRepository _logRepository;

        public LogService(LogRepository logRepository)
        {
            _logRepository = logRepository;
        }

        public async Task LogUserOrderInformation(UserOrderLogInformation info)
        {
            await _logRepository.InsertAsync(info);
        }

        public async Task LogUserCreationInformation(UserCreationInformation info)
        {
            await _logRepository.InsertAsync(info);
        }
    }
}
